package fag.core.game.test.asteroids;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;

import fag.core.game.Scene;

public class AsteroidsScene extends Scene {
	
	public int life = 1, score = 0, niveau = 1;
	
	protected void drawBackground(Graphics2D g) {
		g.setColor(Color.BLACK);
		g.fillRect(0, 0, Asteroids.WIDTH, Asteroids.HEIGHT);
		g.setColor(Color.GRAY);
		g.setFont(new Font("Arial", Font.BOLD, 50));
		String s = "Life: " + life;
		g.drawString(s, 5, 55);
		s = "" + score + " pts";
		g.drawString(s, Asteroids.WIDTH - g.getFontMetrics().stringWidth(s) - 5, 55);
		s = "Niveau " + niveau;
		g.drawString(s, Asteroids.WIDTH - g.getFontMetrics().stringWidth(s) - 5, Asteroids.HEIGHT - 5);
	}

	protected void drawForeground(Graphics2D g) {
		
	}
}
